Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

DEVPROD-838: Add user time format preference #2280

Merged
merged 7 commits into from
Feb 29, 2024

Conversation

sophstad
Copy link
Contributor

DEVPROD-838

Description

  • Allow users to set 12 or 24 hour time preference
  • Reorder user dropdown so that "Admin" appears after "Profile" and "Notifications" (just a pet peeve of mine because the first two are Spruce preference tabs and should be grouped together)

Screenshots

image

Testing

  • Add unit test for datetime formatter

Evergreen PR

evergreen-ci/evergreen#7569

Copy link

cypress bot commented Feb 28, 2024

1 failed and 4 flaky tests on run #15971 ↗︎

1 546 10 0 Flakiness 4
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.

Details:

Remove import cycle
Project: Spruce Commit: 4ff87cf088
Status: Failed Duration: 20:27 💡
Started: Feb 29, 2024 3:41 PM Ended: Feb 29, 2024 4:01 PM

Review all test suite changes for PR #2280 ↗︎

@sophstad sophstad requested a review from a team February 28, 2024 18:38
@sophstad sophstad marked this pull request as ready for review February 28, 2024 18:38
Copy link
Contributor

@khelif96 khelif96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job!

Comment on lines +228 to +231
{label && (
<LabelContainer>
<Label htmlFor={id}>{label}</Label>
</LabelContainer>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch!

if (!dateFormat) {
dateFormat = "MMM d, yyyy";
}
if (!timeFormat) {
timeFormat = "h:mm:ss aa";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit. could we reuse the TimeFormat enum declared above instead of duplicating here?

@sophstad sophstad merged commit d5c6303 into evergreen-ci:main Feb 29, 2024
2 of 6 checks passed
@sophstad sophstad deleted the DEVPROD-838 branch February 29, 2024 16:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants